<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/16
  Time: 8:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>将商品表中所数据导入到Solr中</title>
    <script type="text/javascript" src="/js/jquery.1.9.1.js"></script>
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css">
    <script type="text/javascript" src="/layui/layui.js"></script>
</head>
<body>
  <button id="importBtn" class="layui-btn">导入</button>
<script type="text/javascript">
    $(function () {
        $("#importBtn").click(function () {
           $.ajax({
               type:'post',
               url:'/item/addSolr',
               dataType:'json',
               success:function (data) {
                   alert(data.msg);
               }
           })
        });
    });
</script>
</body>
</html>
